import cjs=createjs
import LayerControl from "./LayerController";
import LoadController from "./app/LoadController";
import MessageController from "./MessageController";
import { ControlEvent } from "@/const";
import BackgroundEditer from "../view/BackgroundEditerView";
import BaseController from "./BaseController";
import OptionModel from "../model/OptionModel";
import LayerController from "./LayerController";
import EditController from "./app/EditController";
/**
 * 游戏控制类
 */
export default class GameController extends BaseController {
    init(option:OptionModel){
        super.init(option);
        this.layer.init(option)

        const editor=new EditController();
        editor.init(option)
        editor.start()
        
    }
    start():void{
        this.message.send(ControlEvent.SHOW_EDITOR)
    }
}